<?php


namespace app\admin\controller;


use app\admin\logic\AppointLogic;

class Appoint extends BaseAdmin
{
    public function listing()
    {
        return $this->fetch();
    }

    public function ajax()
    {
        $keyword = $this->_get('keyword', '');
        $limit = $this->_get('limit',10);
        $r = (new AppointLogic())->listing($keyword,$limit);
        return $r;
    }

    public function delete($id)
    {
        $del = (new AppointLogic())->delete($id);
        return apiReturnSuc($del);
    }
}